package slxy.jiangtao.dts.entity.sys;

import org.hibernate.annotations.DynamicInsert;
import slxy.jiangtao.dts.core.common.bean.BaseId;

import javax.persistence.*;

/**
 * Code must be sexy
 * Created by Jiang Tao on 2017/3/30.
 */
@Entity
@Table(name = "news")
@DynamicInsert
public class News extends BaseId {
    @Basic
    @Column(name = "title",nullable = false)
    private String title;//标题

    @Basic
    @Column(name = "path")
    private String path;//保存路径

    @Basic
    @Column(name = "file_no")
    private String fileNo;//文件编号

    @Basic
    @Column(name = "reporter_text")
    private String reporterText;//文字记者

    @Basic
    @Column(name = "reporter_photo")
    private String reporterPhoto;//摄影记者

    @Basic
    @Column(name = "creator")
    private String creator;//上传人

    @Basic
    @Column(name = "release_time")
    private String releaseTime;//新闻发布时间

    @Basic
    @Column(name = "upload_time")
    private String uploadTime;//录入系统时间

    @Basic
    @Column(name = "type")
    private Integer type;//新闻类型



    @Basic
    @Column(name = "content")
    private String content;//内容

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }


    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }


    public String getFileNo() {
        return fileNo;
    }

    public void setFileNo(String fileNo) {
        this.fileNo = fileNo;
    }

    public String getReporterText() {
        return reporterText;
    }

    public void setReporterText(String reporterText) {
        this.reporterText = reporterText;
    }

    public String getReporterPhoto() {
        return reporterPhoto;
    }

    public void setReporterPhoto(String reporterPhoto) {
        this.reporterPhoto = reporterPhoto;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(String releaseTime) {
        this.releaseTime = releaseTime;
    }

    public String getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(String uploadTime) {
        this.uploadTime = uploadTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
